✨ Add selectionMeta
param to the onChangeRaw event call - to give additional details about the selected date
#5858
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Linked issue: #5701
As mentioned in the linked issue, currently
onChangeRaw
will just include the corresponding event as the only param. In this PR, I enhanced it a little bit by including theselectionMeta
when a day is selected. This includes the selected date object along with the formatted date string.formattedDate
contains the formatted version of the selected date.We're also emitting
onChangeRaw
when user directly change the date input value with change event, but as it's a change event and not specifically related to any day click, I'm not including the selectionMeta there.Problem
To include the additional meta of the selected date element.
Changes
selectionMeta
as a second optional param - to include additional details about the selected dateonChangeRaw
usageScreenshots
Contribution checklist